package com.hzlx;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

public class MesMaintenanceTasksDtO {
    private static final long serialVersionUID = 1L;

    /** 任务ID（自增主键） */
    private Long taskId;

    /** 关联的设备ID */
    @Excel(name = "关联的设备ID")
    private Integer equipmentId;

    /** 任务类型 */
    @Excel(name = "任务类型")
    private String taskType;

    /** 问题现象详细描述 */
    @Excel(name = "问题现象详细描述")
    private String problemDescription;

    /** 解决方案执行记录 */
    @Excel(name = "解决方案执行记录")
    private String solutionDescription;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private String taskStatus;

    /** 任务优先级（低/中/高/紧急） */
    @Excel(name = "任务优先级", readConverterExp = "低=/中/高/紧急")
    private String priority;

    /** 问题报告人ID */
    @Excel(name = "问题报告人ID")
    private String reportedBy;

    /** 问题上报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "问题上报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportedTime;

    /** 任务分配的人员ID */
    @Excel(name = "任务分配的人员ID")
    private String assignedToUserId;

    /** 实际开始处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际开始处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualStartTime;

    /** 实际完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualEndTime;

    /** 实际耗时（小时） */
    @Excel(name = "实际耗时", readConverterExp = "小=时")
    private BigDecimal actualDurationHours;

    /** 维护过程补充说明 */
    @Excel(name = "维护过程补充说明")
    private String notes;

    /** 任务创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId()
    {
        return taskId;
    }

    public Integer getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(Integer equipmentId) {
        this.equipmentId = equipmentId;
    }

    public void setTaskType(String taskType)
    {
        this.taskType = taskType;
    }

    public String getTaskType()
    {
        return taskType;
    }

    public void setProblemDescription(String problemDescription)
    {
        this.problemDescription = problemDescription;
    }

    public String getProblemDescription()
    {
        return problemDescription;
    }

    public void setSolutionDescription(String solutionDescription)
    {
        this.solutionDescription = solutionDescription;
    }

    public String getSolutionDescription()
    {
        return solutionDescription;
    }

    public void setTaskStatus(String taskStatus)
    {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus()
    {
        return taskStatus;
    }

    public void setPriority(String priority)
    {
        this.priority = priority;
    }

    public String getPriority()
    {
        return priority;
    }

    public void setReportedBy(String reportedBy)
    {
        this.reportedBy = reportedBy;
    }

    public String getReportedBy()
    {
        return reportedBy;
    }

    public void setReportedTime(Date reportedTime)
    {
        this.reportedTime = reportedTime;
    }

    public Date getReportedTime()
    {
        return reportedTime;
    }

    public void setAssignedToUserId(String assignedToUserId)
    {
        this.assignedToUserId = assignedToUserId;
    }

    public String getAssignedToUserId()
    {
        return assignedToUserId;
    }

    public void setActualStartTime(Date actualStartTime)
    {
        this.actualStartTime = actualStartTime;
    }

    public Date getActualStartTime()
    {
        return actualStartTime;
    }

    public void setActualEndTime(Date actualEndTime)
    {
        this.actualEndTime = actualEndTime;
    }

    public Date getActualEndTime()
    {
        return actualEndTime;
    }

    public void setActualDurationHours(BigDecimal actualDurationHours)
    {
        this.actualDurationHours = actualDurationHours;
    }

    public BigDecimal getActualDurationHours()
    {
        return actualDurationHours;
    }

    public void setNotes(String notes)
    {
        this.notes = notes;
    }

    public String getNotes()
    {
        return notes;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("taskId", getTaskId())
                .append("equipmentId", getEquipmentId())
                .append("taskType", getTaskType())
                .append("problemDescription", getProblemDescription())
                .append("solutionDescription", getSolutionDescription())
                .append("taskStatus", getTaskStatus())
                .append("priority", getPriority())
                .append("reportedBy", getReportedBy())
                .append("reportedTime", getReportedTime())
                .append("assignedToUserId", getAssignedToUserId())
                .append("actualStartTime", getActualStartTime())
                .append("actualEndTime", getActualEndTime())
                .append("actualDurationHours", getActualDurationHours())
                .append("notes", getNotes())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .toString();
    }
}
